-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes and Improvement parsing #84
Fixes and Improvement parsing #84
Conversation
bc44bfb
to
e01a29d
Compare
6e815fd
to
fd0c92c
Compare
Update: |
6ee114e
to
de790ee
Compare
When I run the episodes from favorites the episode/season still empty. updated note: |
bb38d68
to
38e4501
Compare
Rebase on latest master in order for opensubtitles tests to pass. |
38e4501
to
a484a36
Compare
7c4bae2
to
9389595
Compare
It seems a4ksub not always detect if video is playing with the logic In a4kSubtitles/a4kSubtitles/service.py Lines 15 to 16 in 25f067a
|
I'm unaware of such cases. Could you give me an example for me to verify? |
While testing I noticed when I add an episode to my favorites auto-download doesn't works, I think it's misbehaved from plugin or Kodi not sure.
|
f8d6d17
to
cc7e97b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
bc93eda
to
6f4b2ea
Compare
@xZetsubou Look into the failing tests, so we can merge this. They may to be related to recent changes as previously all except OpenSubtitle tests were passing. |
641814c
to
e967944
Compare
Tests has been modified for new changes, video playing tests has been added I think now only opensubtitles with missing imdb are failing. |
Something is wrong with the commit, it fails to checkout. Could you push again. |
e967944
to
0f91f60
Compare
Done. |
0f91f60
to
b7dfdcc
Compare
@newt-sc The PR is now ready and should pass the tests. |
b7dfdcc
to
17cb126
Compare
@xZetsubou Still some issue with addi7ted this time. ref: https://github.com/a4k-openproject/a4kSubtitles/actions/runs/11249626366/job/31349169232?pr=84 |
That's weird to me it didn't shows fails addi7ted: 11249638769 I'll double check it. same with old tests here 11225330115 Can you re-run the action again |
I've re-run it 7 times.. no luck |
Will merge it and see how it goes. Will fix the tests later if necessary. |
Brief:
Names :
Subittles in archive:
As for the selected episode I noticed that a4ksub always fails to match the subtitle in multi subs archive file, after double check it seems it rely on "episodeid" to get the targeted sub however, none of the services pass the param. I added the episodeid param as "meta.episode" to the services action_args, I think this is good since meta episode is the only way for us to know what episode we are looking for.Another issue i bumped into even if I passed the episode number sometimes it pull incorrect because some files name adds "S01_E02" which will take it since "01" is in the name. I couldn't find anyway to handle this other than introducing a function to extract the episode number and season this also used to improve the results parsing.
^ this has been tested with a file of "64" subtitles and works as expected.
Incorrect TV Year:
TV Year was overwritten in "__update_info_from_imdb" by "meta year" however the tv year already pulled correctly by "__scrape_imdb_id".
So I add an if statement in "__update_info_from_imdb" should set tv year as year only if it's is missing.
Results Parse Improvements:
This has been improved due to "auto download subtitle" pull the incorrect one.Results parsing has been improved and now it even handle tv series way better.
Now subtitle and meta name will be matched by there names parts to detect the closest one, however if an incorrect episode has been detected it will be moved bottom. now this also helps alot on subtitles that named on absolute order.
These changes affect series more then movies.
Here is some test before and after of the results:
Movies // TV Series -- Results Tests
====
====
====
====
====
====
===
===
note: might be noticed but it was intended to prefer full season pack over one episode, I was gonna add this as an option in settings but at the end this worked well.
This worked for me pretty good for both movies and tv series/animes, not sure if I missed something but the more people to test it the faster to know 😅